<link rel="stylesheet" href="/css/my-index.css?v=8">
<div class="my-beijing">
    <div class="touxiang" style="width: 100%;position: absolute;">
        <div class="handler_headimgurl">
            <?php if($this->headimgurl){?>
                <img class="headimgurl" src="<?php echo $this->headimgurl;?>">
            <?php }else{?>
                <img class="headimgurl" src="http://ziyan-image.oss-cn-hangzhou.aliyuncs.com/front/my/hend.png">
            <?php }?>
        </div>
        <div class="nickname"><?php echo $this->nickname;?></div>
    </div>

    <div class="paiming">
        <div class="pai-title">总排名</div>
        <div class="pai-number"><?php echo $this->totalInfo['total_sort'] > 0 && $this->totalInfo['total_score'] >0 ? $this->totalInfo['total_sort'] : '--';?></div>
    </div>
    <div class="paiming">
        <div class="pai-title">总积分</div>
        <div class="pai-number"><?php echo $this->totalInfo['total_score']> 0 ? $this->totalInfo['total_score'] : '--';?></div>
    </div>
    <div class="paiming">
        <div class="pai-title">周排名</div>
        <div class="pai-number"><?php echo $this->totalInfo['sort'] > 0 && $this->totalInfo['score'] > 0 ? $this->totalInfo['sort'] : '--';?></div>
    </div>
    <div class="paiming">
        <div class="pai-title">周积分</div>
        <div class="pai-number"><?php echo $this->totalInfo['score'] > 0 ? $this->totalInfo['score'] : '--';?></div>
    </div>
</div>

<div class="tap">
    <div class="tap-zong  tap-xuanzei">我的竞猜</div>
    <div class="tap-zhou">我的奖品</div>
</div>
<div class="jingcai">
    <!--    竞猜写这里-->
    <?php if($this->playList){?>
        <?php foreach ($this->playList as $item){?>
            <div class="play-box">
                <div class="box-title">
                    <span class="start-time"><?php echo $item['open_date'];?></span>
                    <span><?php echo $item['player_a'];?> VS <?php echo $item['player_b'];?></span>
                    <span class="final_score"><?php echo '+'.$item['score'];?> 积分</span>
                </div>
                <div class="box-result">
                    <span>比赛结果</span>
                    <span><?php echo $item['result_type_a'];?></span>
                    <span><?php echo $item['result_type_b'];?></span>
                    <span><?php echo $item['result_type_c'];?></span>
                    <div style="clear: both;height: 0px;overflow: hidden;"></div>
                </div>
                <div class="box-score">
                    <span>我的竞猜</span>
                    <span><?php echo $item['my_type_a'];?></span>
                    <span><?php echo $item['my_type_b'];?></span>
                    <span><?php echo $item['my_type_c'];?></span>
                    <div style="clear: both;height: 0px;overflow: hidden;"></div>
                </div>
                <div class="box-result">
                    <span>我的得分</span>
                    <span <?php if($item['result_a']){ echo 'class="suc"';}?>><?php if($item['result_a']){ echo \Util\Config::get('ziyan_score_a');}else{ echo '0';}?></span>
                    <span <?php if($item['result_b']){ echo 'class="suc"';}?>><?php if($item['result_b']){ echo \Util\Config::get('ziyan_score_b');}else{ echo '0';}?></span>
                    <span <?php if($item['result_c']){ echo 'class="suc"';}?>><?php if($item['result_c']){ echo \Util\Config::get('ziyan_score_c');}else{ echo '0';}?></span>
                    <div style="clear: both;height: 0px;overflow: hidden;"></div>
                </div>
            </div>
        <?php }?>
    <?php }else{?>
        <div class="empty_con">空空如也~加入竞猜赢大奖吧~</div>
    <?php }?>

</div>
<script>
    $('.tap-zhou').click(function () {
        show_loading();
        window.location.href = '/my/winning';
    });
</script>
